#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void exchange(int* x, int* y)
{
	int temp = 0;
	temp = *x;
	*x = *y;
	*y = temp;
}
int main()
{
	int a = 0, b = 0, c = 0;
	scanf("%d%d%d", &a, &b, &c);
	int temp = 0;
	if (a > b)
	{
		exchange(&a, &b);
	}
	if (a > c)
	{
		exchange(&a, &c);
	}
	if (b > c)
	{
		exchange(&b, &c);
	}
	printf("%d %d %d", c, b, a);
	
	return 0;
}